home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 49 / Amiga Format CD49 (2000-01-17)(Future Publishing)(GB)(Track 1 of 3)[!][issue 2000-02].iso / -serious- / comms / other / cim_r32 / is / ciminstall81 < prev    next >
Text File  |  1999-12-06  |  8KB  |  365 lines

  1. ;
  2. ; Installer Script for CIM V3
  3. ; $VER: CIMInstallerScript 3.1.81 (30.11.99) Written by Jan-Erik Tervo 1997-1999
  4. ; Installer version 42.12 or better recommended
  5. ;
  6.  
  7. (ONERROR
  8.       (EXIT)
  9.         )
  10.  
  11.  
  12. (COMPLETE 0)
  13.  
  14. (RUN "run multiview is/cim_v3.iff")
  15.  
  16. (SET @default-dest "SYS:Expansion")
  17.  
  18. (IF  (exists "CIM:" (noreq))
  19.      (
  20.      (SET cim_vernum (getversion "CIM:bin/cim"))
  21.      (SET cim_ver (/ cim_vernum 65536))
  22.      (SET cim_rev (- cim_vernum (* cim_ver 65536)))
  23.      
  24.      (SET @default-dest (pathonly(expandpath "CIM:")))
  25.      )
  26. )
  27.  
  28. (SET CIMdir @default-dest)
  29.  
  30. ; ENGLISH STRINGS
  31.  
  32. (SET #alku_str
  33.      (cat "\n\n\nWelcome to the CIM V3 Installer script.\n\n \CIM - (the Caller Id Manager)\ Copyright Jan-Erik Tervo 1996, 1997, 1998, 1999.\n\nCharity- & Shareware.\n\n\n")
  34.     )
  35.  
  36. (SET #where_to_str
  37.      (cat "Select where to install CIM (A sub directory called 'CIM' WILL BE created there if not already present.")
  38.     )
  39.  
  40. (SET #str-installingf
  41.      (cat "\n\nInstalling thinpazB.font")
  42.     )
  43.  
  44. (SET #str-installing2-exe
  45.      (cat "\n\nInstalling. . . ")
  46.     )
  47.  
  48. (SET #str-installingodu
  49.      (cat "\n\nInstalling OwnDevUnit.library")
  50.     )
  51.     
  52. (SET #str-installingrxh
  53.      (cat "\n\nInstalling rexxhost.library")
  54.     )
  55.     
  56. (SET #str-alreadyi
  57.      (cat "\n\nYou have CIM already installed!\n\nExecutable version: " cim_ver '.' cim_rev )
  58.     )
  59.  
  60. (SET #str-iccc
  61.      (cat "\n\nInstallation completed.\n\n\nCIM's Official Home Page located at: http://www.netti.fi/~jet/cim\n")
  62.     )
  63.  
  64. (SET #lecut
  65.      (cat "\nOn Low Storage Space situation cut logs to:")
  66.     )
  67.  
  68. (SET #tyok "ibrowse")
  69. (SET _stakki 15000)
  70.  
  71. (MESSAGE #alku_str)
  72.  
  73.  
  74.  
  75.  
  76. (IF cim_vernum
  77.      
  78.                (IF (ASKBOOL(
  79.                          (help "No help for this function")
  80.                          (prompt #str-alreadyi)
  81.                          (choices "Cancel" "Proeed")
  82.                          
  83.                        )
  84.                          
  85.                )
  86.                 
  87.                (EXIT)) 
  88.                
  89.                     
  90.                     
  91. )
  92.      
  93.  
  94.  
  95.  
  96.  
  97.  
  98. (SET CIMdir
  99.      (ASKDIR (prompt #where_to_str)
  100.                                    (HELP "No help for this function")
  101.                                    (DEFAULT @default-dest)
  102.  
  103.            )
  104. )
  105.  
  106.  
  107. (SET Finddir (TACKON CIMdir "CIM"))
  108.  
  109. (COMPLETE 5)
  110.  
  111. (STARTUP "CIM - http://www.netti.fi/~jet/cim/"
  112.           (prompt "Modify s:startup-sequece. Some instructions need to be added to the \"s:user-startup\" so that your system will be properly configured to use CIM.")
  113.           (help "No help for this function")
  114.           (command "ASSIGN CIM: " Finddir)
  115. )
  116.  
  117.  
  118. (COMPLETE 7)
  119.  
  120. (SET _man (ASKBOOL(
  121.                          (prompt "Install HTML Manual?\n")
  122.                          (help "No help for this function")
  123.                          
  124.                   )
  125.           )
  126. )
  127.  
  128.  
  129.  
  130. (IF _man
  131.      (SET #tyok
  132.           (askfile 
  133.  
  134.                     (prompt "\nGive a HTML-browser you want to use.")
  135.                     (help "No help")
  136.                     (default "SYS:Internet")
  137.                     )
  138.      
  139.      )
  140. )
  141.  
  142. (COMPLETE 8)
  143.  
  144. (set #ok 0)
  145. (set #instchoice 0)
  146.  
  147. (while (not #ok)
  148.    (
  149.        (set #instchoice
  150.            (askchoice
  151.                (prompt #lecut)
  152.                (help "")
  153.                (choices "100k" "500k" "3000k")
  154.                (default 2)
  155.            )
  156.        )
  157.  
  158.       (if (= #instchoice 0)
  159.       (set #ok 1)
  160.       )
  161.       
  162.       (if (= #instchoice 1)
  163.       (set #ok 1)
  164.       )
  165.       
  166.       (if (= #instchoice 2)
  167.       (set #ok 1)
  168.       )
  169.    )
  170. )
  171.  
  172.  
  173.  
  174.  
  175.  
  176.  
  177.  
  178.  
  179.  
  180. (COMPLETE 10)
  181.  
  182.  
  183.  
  184. (MAKEDIR Finddir
  185.           (help "No help for this function")
  186.           (infos)
  187.           (prompt "CIM dir will be created next")         
  188.  
  189. )
  190.  
  191. (SET @default-dest Finddir)
  192. (MAKEASSIGN "CIM" Finddir)
  193.  
  194. (COMPLETE 15)
  195.  
  196. ;  Install Stuff
  197.  
  198.  
  199. (COPYFILES
  200.         (help "No help for this function")
  201.         (source "fonts/")
  202.         (pattern "#?")
  203.         (fonts)
  204.         (dest "FONTS:")
  205.         (prompt #str-installingf)
  206.         (confirm)
  207.          )
  208.  
  209. (COMPLETE 20)
  210.  
  211. (COPYLIB
  212.         (help "No help for this function")
  213.         (source "libs/owndevunit.library")
  214.         
  215.         (dest "LIBS:")
  216.         (prompt #str-installingodu)
  217.         (confirm)
  218.          )
  219.  
  220. (COMPLETE 35)
  221.  
  222. (COPYLIB
  223.         (help "No help for this function")
  224.         (source "libs/rexxhost.library")
  225.         
  226.         (dest "LIBS:")
  227.         (prompt #str-installingrxh)
  228.         (confirm)
  229.          )
  230.  
  231.  
  232. (COMPLETE 40)
  233.  
  234.  
  235. (COPYFILES
  236.         (help "No help for this function")
  237.         (source "stuff/")
  238.         (pattern "#?")
  239.         (dest Finddir)
  240.         (prompt #str-installing-exe)
  241.          )
  242.  
  243. (COMPLETE 50)
  244.  
  245.  
  246.  
  247.  
  248.  
  249.  
  250. (IF _man
  251.         (
  252.           (COPYFILES
  253.                (help "No help for this function")
  254.                (source "stuff2/")
  255.                (pattern "#?")
  256.                (dest "CIM:DOCS/")
  257.                (prompt "Installing")
  258.           )
  259.          
  260.           (ICONINFO
  261.                (dest #tyok)
  262.                (prompt "")
  263.                (getstack "_stakki")
  264.           )
  265.          
  266.           (TOOLTYPE 
  267.                     (dest "CIM:DOCS/MANUAL/index.html")
  268.                     (setdefaulttool #tyok)
  269.                     (setstack _stakki)
  270.           )
  271.          )
  272.                               
  273.  
  274. )
  275.   
  276.  
  277.  
  278.                                                                                                                                                                                                                            (COMPLETE 77)
  279.  
  280.                                                                                                                                                                                                                                 (IF (exists "cim_v3.key")
  281.                                                                                                                                                                                                                                       (COPYFILES
  282.                                                                                                                                                                                                                                            (source "cim_v3.key")
  283.                                                                                                                                                                                                                                            (dest "s:")
  284.                                                                                                                                                                                                                                                   )
  285.                                                                                                                                                                                                                                        )
  286.  
  287. (COMPLETE 80)
  288.  
  289. (IF (= #instchoice 0)
  290.  
  291.     (COPYFILES
  292.                (help "No help for this function")
  293.                (source "stuff3/logsizer.cfg_0")
  294.                
  295.                
  296.                (dest "CIM:SCRIPTS/AREXX/LOGSIZER/")
  297.                (newname "logsizer.cfg")
  298.                
  299.                (prompt "Installing")
  300.     )
  301.    
  302. )
  303.  
  304.  
  305.  
  306. (IF (= #instchoice 1)
  307.  
  308.     (COPYFILES
  309.                (help "No help for this function")
  310.                (source "stuff3/logsizer.cfg_1")
  311.                
  312.                
  313.                (dest "CIM:SCRIPTS/AREXX/LOGSIZER/")
  314.                (newname "logsizer.cfg")
  315.                
  316.                (prompt "Installing")
  317.     )
  318.    
  319. )
  320.  
  321.  
  322.  
  323. (IF (= #instchoice 2)
  324.  
  325.     (COPYFILES
  326.                (help "No help for this function")
  327.                (source "stuff3/logsizer.cfg_2")
  328.                
  329.                
  330.                (dest "CIM:SCRIPTS/AREXX/LOGSIZER/")
  331.                (newname "logsizer.cfg")
  332.                
  333.                (prompt "Installing")
  334.     )
  335.    
  336. )
  337.  
  338. (COMPLETE 85)
  339.         
  340. (MESSAGE #str-iccc)
  341.  
  342.  
  343.  
  344. (PROTECT "CIM:bin/cim" "rwed")
  345.  
  346. (COMPLETE 90)
  347.  
  348. (RUN "run multiview is/cim_wb.iff")
  349.  
  350. (RUN "wait 3")
  351.  
  352. (RUN "multiview /cim_v3.readme")
  353.  
  354. (RUN "multiview README_FIRST")
  355.  
  356. (RUN "multiview IMPORTANT")
  357.  
  358. (COMPLETE 100)
  359.  
  360. ; end of installation
  361.  
  362. (EXIT)
  363.  
  364.  
  365.